
LOCAL_PATH:= $(call my-dir)

include $(CLEAR_VARS)
LOCAL_MODULE    := libusb
LOCAL_SRC_FILES := \
	libusb_aah/libusb/core.c \
	libusb_aah/libusb/descriptor.c \
	libusb_aah/libusb/io.c \
	libusb_aah/libusb/sync.c \
	libusb_aah/libusb/os/linux_usbfs.c \
	libusb_aah/libusb/os/threads_posix.c
LOCAL_C_INCLUDES := \
	$(LOCAL_PATH)/libusb_aah \
	$(LOCAL_PATH)/libusb_aah/libusb
LOCAL_EXPORT_C_INCLUDES := \
	$(LOCAL_PATH)/libusb_aah/libusb
#include $(BUILD_SHARED_LIBRARY)
include $(BUILD_STATIC_LIBRARY)

include $(CLEAR_VARS)
LOCAL_MODULE    := jni_usbhid
LOCAL_SRC_FILES := \
	usbhid.c \
	jni_usbhid.c
#LOCAL_LDLIBS    := -llog -landroid
LOCAL_LDLIBS    := -llog
#LOCAL_SHARED_LIBRARIES := libusb
LOCAL_STATIC_LIBRARIES := libusb
include $(BUILD_SHARED_LIBRARY)
